package com.dnjn.happiness.survey.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dnjn.happiness.survey.domain.Answer;
import com.dnjn.happiness.survey.domain.Survey;
import com.dnjn.happiness.survey.domain.SurveyRecord;
import com.dnjn.happiness.survey.domain.vo.AnswerVO;
import com.dnjn.happiness.survey.domain.vo.SurveyUserVO;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Amber
 * @since 2023-10-04
 */
public interface IAnswerService extends IService<Answer> {

    void goToAnswer(List<Answer> domain);

    Page<Answer> selectAnswerList(SurveyRecord domain, Page<Object> answer_id);

    //小程序-我的问卷-根据问卷id查看答题列表
    Page<SurveyRecord> selectRecordList(Survey domain, Page<Object> answer_id);

    Page<SurveyRecord> selectRecordList1(Long surveyId, Page<Object> survey_record_id);

    List<Answer> selectAnswerCount(String option, Long questionId);

    List<Answer> selectAnswerListAndScore(Long questionId);

    List<SurveyUserVO> screeningSubmit(AnswerVO answerVO);


}
